// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
@use '../../m24/vars/lib' as *;
@use './vars' as advars;
@use './mixins' as admixins;

.mza-half-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    &.has-margin-bottom {
        margin-bottom: $spacer-xl;
    }

    &.is-list-item {
        gap: 0;
        border-top: 1px solid advars.$color-ads-off-black;
        padding: 1.5rem 0;
        align-items: start;

        > p:last-child {
            margin-bottom: 0;
        }
    }

    &.has-border-top {
        border-top: 1px solid advars.$color-ads-off-black;
        padding-top: 2rem;

        @media #{$mq-md} {
            padding-top: 3rem;
        }
    }
}

.mza-c-main-dark-section {
    .mza-half-grid {
        &.is-list-item,
        &.has-border-top {
            border-color: advars.$color-ads-dark-gray;
        }
    }
}
